import request from '@/utils/request'

// 查询订单/任务主列表
export function listMain(query) {
  return request({
    url: '/business/main/list',
    method: 'get',
    params: query
  })
}

// 查询订单/任务主详细
export function getMain(id) {
  return request({
    url: '/business/main/' + id,
    method: 'get'
  })
}

// 新增订单/任务主
export function addMain(data) {
  return request({
    url: '/business/main',
    method: 'post',
    data: data
  })
}

// 修改订单/任务主
export function updateMain(data) {
  return request({
    url: '/business/main',
    method: 'put',
    data: data
  })
}

// 删除订单/任务主
export function delMain(id) {
  return request({
    url: '/business/main/' + id,
    method: 'delete'
  })
}
